{extend name="public/base" /}
{block name="body"}
<div class="row maintop">
    <div class="col-xs-12 col-sm-2">
        <a href="{:url('Manageuser/AdminAdd')}">
            <button class="btn btn-xs btn-danger">
                <i class="ace-icon fa fa-bolt bigger-110"></i>
                添加管理员
            </button>
        </a>
    </div>

    <div class="col-xs-12 col-sm-3">
        <form name="admin_list_sea" class="form-search" method="post" action="{:url('Manageuser/AdminList')}">
            <div class="input-group">
				<span class="input-group-addon">
					<i class="ace-icon fa fa-check"></i>
				</span>
                <input type="text" name="keyword" class="form-control search-query admin_sea" value="{$keyword|default=''}" placeholder="输入需查询的用户名"/>
					<span class="input-group-btn">
						<button type="submit" class="btn btn-xs  btn-purple">
							<span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
                            搜索
                        </button>
					</span>
            </div>
        </form>
    </div>
    <div class="input-group-btn">
        <a href="{:url('Manageuser/AdminList')}">
            <button type="button" class="btn btn-xs  btn-purple">
                <span class="ace-icon fa fa-globe icon-on-right bigger-110"></span>
                显示全部
            </button>
        </a>
    </div>
</div>
<div class="row">
    <div class="col-xs-12">
        <div>
            <form id="leftnav" name="leftnav" method="post" action="">
                <input type="hidden" name="checkk" id="checkk" value="1"/><!--用于判断操作类型-->
                <table width="100%" class="table table-striped table-bordered table-hover"
                       id="dynamic-table">
                    <thead>
                    <tr>
						<th width="5%">id</th>
                        <th width="10%">登录用户名</th>
                        <th width="17%">邮箱</th>
                        <th width="10%">用户组</th>
                        <th width="9%">真实姓名</th>
                        <th width="8%">电话号码</th>
                        <th width="6%">登陆次数</th>
                        <th width="9%">IP地址</th>
						<th width="9%">创建时间</th>
                        <th width="9%" style="border-right:#CCC solid 1px;">状态</th>
                        <th width="8%" style="border-right:#CCC solid 1px;">操作</th>
                    </tr>
                    </thead>

                    <tbody>

                    {volist name='data' id='v'}
                    <tr>
						<td>{$v.id}</td>
                        <td height="28">{$v.admin_username}</td>
                        <td>{$v.admin_email}</td>
                        <td>{$v.group_name}</td>
                        <td>{$v.admin_realname}</td>
                        <td>{$v.admin_tel}</td>
                        <td>{$v.admin_hits}</td>
                        <td>{$v.admin_ip}</td>
						<td>{$v.admin_addtime|date="Y-m-d",###}</td>
                        <td>
                            <a class="red _set_status" attr-id="{$v.id}" attr-url="{:url('Manageuser/AdminState')}" href="javascript:;"  title="已开启">
                                {if condition="$v['status'] eq 1"}
                                    <span class="btn btn-minier btn-yellow">状态开启</span>
								{else/}
									<span class="btn btn-minier btn-danger">状态禁用</span>
								{/if}
                            </a>
                        </td>
                        <td>
                            <div class="hidden-sm hidden-xs action-buttons">
                                <a class="green" href="{:url('Manageuser/AdminEdit',array('id'=>$v['id']))}" title="修改">
                                    <i class="ace-icon fa fa-pencil bigger-130"></i> 
								</a>
                                <a class="red _del" href="javascript:;" attr-id="{$v.id}" attr-url="{:url('Manageuser/AdminDel')}" title="删除">
                                    <i class="ace-icon fa fa-trash-o bigger-130"></i> 
								</a>
							</div>
                        </td>
                    </tr>
                    {/volist}
                    <tr>
                        <td height="50" colspan="11" align="left">{$page}</td>
                    </tr>
                    </tbody>
                </table>
            </form>
        </div>
    </div>
</div>
{/block}